import Vue from 'vue'
import Vuex from 'vuex'
import moduleCart from './cart.js'
import moduleUser from './user.js'

//安装插件
Vue.use(Vuex)

//创建Store对象
const store = new Vuex.Store({
	modules:{
		'm_cart':moduleCart,
		'm_user':moduleUser,
	}
})

export default store
